import { savePrivacyToLocal } from"./global"
type  SetLocal = (key: string, value: string) => void

export const setLocal: SetLocal = (key, value) => {
	try{
		uni.setStorageSync(key, value);
	}catch(e){
		console.log(e)
		//TODO handle the exception
	}
}

export const clearLocalStore = () => {
	uni.clearStorage();
	savePrivacyToLocal('1'); // 因为现在同意协议没有接口，现在存在前端存储里面，
}



